/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package jsf.entity;

import entity.Tag;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.faces.context.FacesContext;
import jpa.controllers.TagJpaController;
import jsf.util.JsfUtil;

/**
 *
 * @author atap
 */
public class TagController {
    
    private Tag tag = null;
    private TagJpaController jpaController = null;
    private TagConverter converter = null;
    
    public TagController() {
        FacesContext context = FacesContext.getCurrentInstance();
        jpaController = (TagJpaController) context.getApplication().getELResolver().getValue(context.getELContext(), null, "tagJpa");
        converter = new TagConverter();
    }
    
    public Tag getTag() {
        if(tag == null) {
            tag = (Tag)JsfUtil.getObjectFromRequestParameter("jsfcrud.currentTag", converter, null);
        }
        if(tag == null) {
            tag = new Tag();
        }
        return tag;
    }
    
    //getSynonyms
    
    //UpdateScore
    
}
